<?php

header("Content-Disposition:inline;filename=javascript.js");
include_once("../lib/constants.php");
include("gzip.php");

$scripts = array(
	"jquery-1.6.1.min.js",
	"jquery-ui-1.7.2.custom.min.js",
	"min-jquery-totalposition-1.0.0.js",
	"min-script.js",
	"yamb/min-yamb.js"
);


echo "var root = '".ROOT."';";

foreach($scripts as $script){
	$js = trim(file_get_contents("./$script"));
	$js = preg_replace('/^\/\*.*?\*\//s', "", $js);
	echo $js;
}

?>